package org.webcamp.results.services.impl;

import java.util.List;

import org.webcamp.results.dao.ResultsDao;
import org.webcamp.results.dto.QuestionaryResult;
import org.webcamp.results.services.ResultsService;

public class ResultsServiceImpl implements ResultsService {

	private ResultsDao resultsDao;

	public void setResultsDao(ResultsDao resultsDao) {
		this.resultsDao = resultsDao;
	}

	@Override
	public void addResult(QuestionaryResult res) {
		resultsDao.addResult(res);
	}

	@Override
	public List<QuestionaryResult> getUserResult(int userId) {
		return resultsDao.getUserResult(userId);
	}

}
